﻿<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="ControlEditarEstructuraDocumentos.ascx.cs"
    Inherits="WebArchivosTelefonica.Jerarquias.ControlEditarEstructuraDocumentos" %>
<%@ Register Src="ControlEstadosDocumento.ascx" TagName="ControlEstadosDocumento"
    TagPrefix="uc1" %>
<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="cc1" %>
<link rel="stylesheet" type="text/css" title="CSS" href="../styles/Default.css" media="screen" />
<table style="vertical-align: top;">
    <tr>
        <td style="border-style: solid none none solid; border-width: thin; border-color: #0066FF;
            vertical-align: top">
            <asp:Label ID="Label1" runat="server" Font-Names="Verdana" Text="Carpetas principales"></asp:Label>
            <asp:GridView ID="_gridViewCarpetasHijas" runat="server" AutoGenerateColumns="False"
                CellPadding="4" ForeColor="#333333" GridLines="None" HorizontalAlign="Justify"
                SkinID="GridViewSkin" AllowPaging="True" Font-Names="Verdana" Font-Size="X-Small"
                BorderWidth="2px" BorderColor="#999999" DataSourceID="ObjectDataSourceCarpetasHijas"
                DataKeyNames="Id,Nombre" OnSelectedIndexChanged="_gridViewCarpetasHijas_SelectedIndexChanged"
                OnRowUpdating="_gridViewCarpetasHijas_RowUpdating">
                <RowStyle BackColor="#EFF3FB" BorderStyle="None" />
                <FooterStyle BackColor="#6699ff" ForeColor="Black" Font-Bold="True" />
                <SelectedRowStyle BackColor="#D1DDF1" Font-Bold="True" ForeColor="Black" />
                <Columns>
                    <asp:TemplateField ShowHeader="False">
                        <EditItemTemplate>
                            <asp:LinkButton ID="LinkButton1" runat="server" CausesValidation="True" CommandName="Update"
                                Text="Actualizar" ValidationGroup="EditarCarpetasHijas"></asp:LinkButton>
                            &nbsp;<asp:LinkButton ID="LinkButton2" runat="server" CausesValidation="False" CommandName="Cancel"
                                Text="Cancelar"></asp:LinkButton>
                        </EditItemTemplate>
                        <ItemTemplate>
                            <asp:LinkButton ID="LinkButton1" runat="server" CausesValidation="False" CommandName="Edit"
                                Text="Editar"></asp:LinkButton>
                            &nbsp;<asp:LinkButton ID="LinkButton2" runat="server" CausesValidation="False" CommandName="Select"
                                Text="Seleccionar"></asp:LinkButton>
                            &nbsp;<asp:LinkButton ID="LinkButton3" runat="server" CausesValidation="False" CommandName="Delete"
                                Text="Borrar"></asp:LinkButton>
                        </ItemTemplate>
                    </asp:TemplateField>
                    <asp:TemplateField HeaderText="Nombre" SortExpression="Nombre">
                        <EditItemTemplate>
                            <asp:TextBox ID="TextBox1" runat="server" Text='<%# Bind("Nombre") %>' ValidationGroup="EditarCarpetasHijas"></asp:TextBox>
                            <br />
                            <asp:RequiredFieldValidator ID="RequiredFieldValidatorCarpetaHijaEditada" runat="server"
                                ControlToValidate="TextBox1" ErrorMessage="No se puede insertar carpeta sin nombre"
                                ValidationGroup="EditarCarpetasHijas"></asp:RequiredFieldValidator>
                            <br />
                            <asp:CustomValidator ID="CustomValidatorEditarCarpetaHija" runat="server" ControlToValidate="TextBox1"
                                ErrorMessage="Esta carpeta ya existe" OnServerValidate="CustomValidatorEditarCarpetaHija_ServerValidate"
                                ValidationGroup="EditarCarpetasHijas"></asp:CustomValidator>
                        </EditItemTemplate>
                        <ItemTemplate>
                            <asp:Label ID="Label1" runat="server" Text='<%# Bind("Nombre") %>'></asp:Label>
                        </ItemTemplate>
                    </asp:TemplateField>
                    <asp:BoundField DataField="Id" ReadOnly="True" SortExpression="Id" ShowHeader="False">
                        <ControlStyle CssClass="styleHidden" Width="0px" />
                        <FooterStyle CssClass="styleHidden" Width="0px" />
                        <HeaderStyle CssClass="styleHidden" Width="0px" />
                        <ItemStyle CssClass="styleHidden" Width="0px" />
                    </asp:BoundField>
                </Columns>
                <PagerStyle BackColor="#6699FF" ForeColor="White" HorizontalAlign="Center" />
                <HeaderStyle BackColor="#6699ff" ForeColor="Black" Font-Bold="True" />
                <EditRowStyle HorizontalAlign="Center" VerticalAlign="Middle" Wrap="True" BackColor="Silver" />
                <AlternatingRowStyle BackColor="White" />
            </asp:GridView>
            <asp:ObjectDataSource ID="ObjectDataSourceCarpetasHijas" runat="server" DataObjectTypeName="WebArchivosTelefonica.Jerarquias.JerarquiaCarpeta"
                OldValuesParameterFormatString="original_{0}" SelectMethod="GetCarpetasHijas"
                TypeName="WebArchivosTelefonica.Jerarquias.DataSourceJerarquiaCarpetas" UpdateMethod="UpdateJerarquiaCarpeta"
                DeleteMethod="DeleteJerarquiaCarpeta">
                <SelectParameters>
                    <asp:ControlParameter ControlID="_hiddenFieldIdCarpetaBase" Name="idCarpetaPadre"
                        PropertyName="Value" Type="String" />
                </SelectParameters>
            </asp:ObjectDataSource>
            <asp:HiddenField ID="_hiddenFieldIdCarpetaBase" runat="server" />
            <br />
            <asp:TextBox ID="_textBoxNuevaCarpetaHija" runat="server" ValidationGroup="AgregarCarpetasHijas"></asp:TextBox>
            <asp:Button ID="_buttonAgregarCarpetaHija" runat="server" Text="Agregar" OnClick="_buttonAgregarCarpetaHija_Click"
                UseSubmitBehavior="False" ValidationGroup="AgregarCarpetasHijas" />
            <br />
            <asp:RequiredFieldValidator ID="RequiredFieldValidatorCarpetaHija" runat="server"
                ControlToValidate="_textBoxNuevaCarpetaHija" ErrorMessage="No se puede insertar carpeta sin nombre"
                ValidationGroup="AgregarCarpetasHijas"></asp:RequiredFieldValidator>
            <br />
            <asp:CustomValidator ID="CustomValidatorAgregarCarpetaHija" runat="server" ControlToValidate="_textBoxNuevaCarpetaHija"
                ErrorMessage="Esta carpeta ya existe" OnServerValidate="CustomValidatorAgregarCarpetaHija_ServerValidate"
                ValidationGroup="AgregarCarpetasHijas"></asp:CustomValidator>
        </td>
        <td style="border-style: solid solid solid none; border-width: thin; border-color: #0066FF;
            vertical-align: top">
            <asp:Label ID="Label3" runat="server" Font-Names="Verdana" Text="Documentos de carpeta principal"></asp:Label>
            <asp:GridView ID="_gridViewDocumentosPlantilla" runat="server" AutoGenerateColumns="False"
                CellPadding="4" DataKeyNames="Id,IdDocumentoTag" ForeColor="#333333" GridLines="None"
                HorizontalAlign="Justify" SkinID="GridViewSkin" AllowPaging="True" Font-Names="Verdana"
                Font-Size="X-Small" BorderWidth="2px" BorderColor="#999999" DataSourceID="LinqDataSourceDocumentosPlantilla"
                OnRowCommand="_gridViewDocumentosPlantilla_RowCommand" EmptyDataText="No hay documentos asociados">
                <RowStyle BackColor="#EFF3FB" BorderStyle="None" />
                <FooterStyle BackColor="#6699ff" ForeColor="Black" Font-Bold="True" />
                <SelectedRowStyle BackColor="#D1DDF1" Font-Bold="True" ForeColor="Black" />
                <Columns>
                    <asp:TemplateField ShowHeader="False">
                        <ItemTemplate>
                            <asp:LinkButton ID="LinkButton1" runat="server" CausesValidation="False" CommandName="Select"
                                CommandArgument="<%# Container.DataItemIndex %>" Text="Ver"></asp:LinkButton>
                        </ItemTemplate>
                    </asp:TemplateField>
                    <asp:BoundField DataField="NombreTag" HeaderText="Tipo de Documento" ReadOnly="True"
                        SortExpression="NombreTag" />
                    <asp:CheckBoxField DataField="Relevante" HeaderText="Relevante" SortExpression="Relevante" />
                    <asp:TemplateField HeaderText="cambiar">
                        <ItemTemplate>
                            <asp:LinkButton ID="LinkButtonSwitchRelevanteDocumento" runat="server" CommandArgument="<%# Container.DataItemIndex %>"
                                CommandName="switchRelevanteTagEstructura">cambiar...</asp:LinkButton>
                        </ItemTemplate>
                    </asp:TemplateField>
                    <asp:TemplateField>
                        <EditItemTemplate>
                            <asp:LinkButton ID="LinkButtonQuitarDocumentoPlantilla" Text="quitar..." Enabled="false"
                                runat="server"></asp:LinkButton>
                        </EditItemTemplate>
                        <ItemTemplate>
                            <asp:LinkButton CommandName="borrarTagEstructura" CommandArgument="<%# Container.DataItemIndex %>"
                                ID="LinkButtonQuitarDocumentoPlantilla" runat="server">quitar...</asp:LinkButton>
                            <cc1:HoverMenuExtender ID="LinkButtonQuitarDocumentoPlantilla_HoverMenuExtender"
                                runat="server" DynamicServicePath="" Enabled="True" TargetControlID="LinkButtonQuitarDocumentoPlantilla"
                                PopupControlID="PanelWarning" PopupPosition="Bottom">
                            </cc1:HoverMenuExtender>
                            <asp:Panel ID="PanelWarning" runat="server" CssClass="popupMenu" Font-Names="Verdana"
                                Font-Size="X-Small" BorderWidth="2px" BorderColor="#999999">
                                <table>
                                    <tr>
                                        <td>
                                            <asp:Image ID="ImageWarning" runat="server" ImageUrl="~/Images/Warning.png" Width="50px" />
                                        </td>
                                        <td>
                                            <asp:Label ID="Label5" runat="server" Text="Al borrar un documento se borran todos los documentos de este tipo de todos los candidatos."></asp:Label>
                                        </td>
                                    </tr>
                                </table>
                            </asp:Panel>
                        </ItemTemplate>
                    </asp:TemplateField>
                    <asp:BoundField DataField="Id" HeaderText="Id" ReadOnly="True" SortExpression="Id">
                        <ControlStyle CssClass="styleHidden" />
                        <FooterStyle CssClass="styleHidden" />
                        <HeaderStyle CssClass="styleHidden" />
                        <ItemStyle CssClass="styleHidden" />
                    </asp:BoundField>
                </Columns>
                <PagerStyle BackColor="#6699FF" ForeColor="White" HorizontalAlign="Center" />
                <HeaderStyle BackColor="#6699ff" ForeColor="Black" Font-Bold="True" />
                <EditRowStyle HorizontalAlign="Center" VerticalAlign="Middle" Wrap="True" BackColor="Silver" />
                <AlternatingRowStyle BackColor="White" />
            </asp:GridView>
            <br />
            <asp:Label ID="_labelDocumentosWarningSeleccionarCarpetaPrincipal" runat="server"
                Font-Names="Verdana" Font-Size="X-Small" Text="Seleccione una carpeta principal"></asp:Label>
            <asp:LinqDataSource ID="LinqDataSourceDocumentosPlantilla" runat="server" ContextTypeName="WebArchivosTelefonica.Jerarquias.DataClassesArbolDataContext"
                TableName="Documentos" Where="Descripcion == @Descripcion &amp;&amp; IdJerarquiaCarpeta == Guid(@IdJerarquiaCarpeta)"
                OrderBy="Nombre" EnableUpdate="True">
                <WhereParameters>
                    <asp:Parameter DefaultValue="Plantilla" Name="Descripcion" Type="String" />
                    <asp:ControlParameter ControlID="_hiddenFieldIdCarpetaHijaSeleccionada" Name="IdJerarquiaCarpeta"
                        DefaultValue="00000000-0000-0000-0000-000000000000" PropertyName="Value" Type="Object" />
                </WhereParameters>
            </asp:LinqDataSource>
        </td>
    </tr>
    <tr>
        <td style="border-style: none solid solid solid; border-width: thin; border-color: #0066FF;
            vertical-align: top">
            <br />
            <asp:Label ID="Label2" runat="server" Font-Names="Verdana" Text="Carpetas secundarias"></asp:Label>
            <asp:GridView ID="_gridViewCarpetasNietas" runat="server" AutoGenerateColumns="False"
                CellPadding="4" DataKeyNames="Id" ForeColor="#333333" GridLines="None" HorizontalAlign="Justify"
                SkinID="GridViewSkin" AllowPaging="True" Font-Names="Verdana" Font-Size="X-Small"
                BorderWidth="2px" BorderColor="#999999" DataSourceID="ObjectDataSourceCarpetasNietas"
                EmptyDataText="No hay carpetas asociadas" OnRowUpdating="_gridViewCarpetasNietas_RowUpdating">
                <RowStyle BackColor="#EFF3FB" BorderStyle="None" />
                <Columns>
                    <asp:TemplateField ShowHeader="False">
                        <EditItemTemplate>
                            <asp:LinkButton ID="LinkButton1" runat="server" CausesValidation="True" CommandName="Update"
                                Text="Editar" ValidationGroup="EditarCarpetasNietas"></asp:LinkButton>
                            &nbsp;<asp:LinkButton ID="LinkButton2" runat="server" CausesValidation="False" CommandName="Cancel"
                                Text="Cancelar"></asp:LinkButton>
                        </EditItemTemplate>
                        <ItemTemplate>
                            <asp:LinkButton ID="LinkButton1" runat="server" CausesValidation="False" CommandName="Edit"
                                Text="Editar"></asp:LinkButton>
                            &nbsp;<asp:LinkButton ID="LinkButton2" runat="server" CausesValidation="False" CommandName="Delete"
                                Text="Borrar"></asp:LinkButton>
                        </ItemTemplate>
                    </asp:TemplateField>
                    <asp:TemplateField HeaderText="Nombre" SortExpression="Nombre">
                        <EditItemTemplate>
                            <asp:TextBox ID="TextBox1" runat="server" Text='<%# Bind("Nombre") %>' ValidationGroup="EditarCarpetasNietas"></asp:TextBox>
                            <asp:RequiredFieldValidator ID="RequiredFieldValidatorCarpetaNietaEditada" runat="server"
                                ControlToValidate="TextBox1" ErrorMessage="No se puede insertar carpeta sin nombre"
                                ValidationGroup="EditarCarpetasNietas"></asp:RequiredFieldValidator>
                            <br />
                            <asp:CustomValidator ID="CustomValidatorEditarCarpetaNieta" runat="server" ControlToValidate="TextBox1"
                                ErrorMessage="Esta carpeta ya existe" OnServerValidate="CustomValidatorAgregarCarpetaNieta_ServerValidate"
                                ValidationGroup="EditarCarpetasNietas"></asp:CustomValidator>
                        </EditItemTemplate>
                        <ItemTemplate>
                            <asp:Label ID="Label1" runat="server" Text='<%# Bind("Nombre") %>'></asp:Label>
                        </ItemTemplate>
                    </asp:TemplateField>
                    <asp:BoundField DataField="Id" HeaderText="Id" SortExpression="Id">
                        <ControlStyle CssClass="styleHidden" />
                        <FooterStyle CssClass="styleHidden" />
                        <HeaderStyle CssClass="styleHidden" />
                        <ItemStyle CssClass="styleHidden" />
                    </asp:BoundField>
                </Columns>
                <FooterStyle BackColor="#6699ff" ForeColor="Black" Font-Bold="True" />
                <SelectedRowStyle BackColor="#D1DDF1" Font-Bold="True" ForeColor="Black" />
                <PagerStyle BackColor="#6699FF" ForeColor="White" HorizontalAlign="Center" />
                <HeaderStyle BackColor="#6699ff" ForeColor="Black" Font-Bold="True" />
                <EditRowStyle HorizontalAlign="Center" VerticalAlign="Middle" Wrap="True" BackColor="Silver" />
                <AlternatingRowStyle BackColor="White" />
            </asp:GridView>
            <br />
            <asp:Label ID="_labelSecundariasWarningSeleccionarCarpetaPrincipal" runat="server"
                Font-Names="Verdana" Font-Size="X-Small" Text="Seleccione una carpeta principal"></asp:Label>
            <asp:ObjectDataSource ID="ObjectDataSourceCarpetasNietas" runat="server" DataObjectTypeName="WebArchivosTelefonica.Jerarquias.JerarquiaCarpeta"
                DeleteMethod="DeleteJerarquiaCarpeta" OldValuesParameterFormatString="original_{0}"
                SelectMethod="GetCarpetasHijas" TypeName="WebArchivosTelefonica.Jerarquias.DataSourceJerarquiaCarpetas"
                UpdateMethod="UpdateJerarquiaCarpeta">
                <SelectParameters>
                    <asp:ControlParameter ControlID="_hiddenFieldIdCarpetaHijaSeleccionada" DefaultValue="00000000-0000-0000-0000-000000000000"
                        Name="idCarpetaPadre" PropertyName="Value" Type="String" />
                </SelectParameters>
            </asp:ObjectDataSource>
            <asp:HiddenField ID="_hiddenFieldIdCarpetaHijaSeleccionada" runat="server" />
            <br />
            <asp:TextBox ID="_textBoxNuevaCarpetaNieta" runat="server" ValidationGroup="AgregarCarpetasNietas"></asp:TextBox>
            <asp:Button ID="_buttonAgregarCarpetaNieta" runat="server" Text="Agregar" OnClick="_buttonAgregarCarpetaNieta_Click"
                UseSubmitBehavior="False" ValidationGroup="AgregarCarpetasNietas" />
            <br />
            <asp:RequiredFieldValidator ID="RequiredFieldValidatorCarpetaNieta" runat="server"
                ControlToValidate="_textBoxNuevaCarpetaNieta" ErrorMessage="No se puede insertar carpeta sin nombre"
                ValidationGroup="AgregarCarpetasNietas"></asp:RequiredFieldValidator>
            <br />
            <asp:CustomValidator ID="CustomValidatorAgregarCarpetaNieta" runat="server" ControlToValidate="_textBoxNuevaCarpetaNieta"
                ErrorMessage="Esta carpeta ya existe" OnServerValidate="CustomValidatorAgregarCarpetaNieta_ServerValidate"
                ValidationGroup="AgregarCarpetasNietas"></asp:CustomValidator>
        </td>
        <td style="vertical-align: top">
            <asp:Label ID="Label4" runat="server" Font-Names="Verdana" Text="Tipos de documento existentes"></asp:Label>
            <asp:GridView ID="_gridViewTagsDocumentos" runat="server" AutoGenerateColumns="False"
                CellPadding="4" DataKeyNames="id" ForeColor="#333333" GridLines="None" HorizontalAlign="Justify"
                SkinID="GridViewSkin" AllowPaging="True" Font-Names="Verdana" Font-Size="X-Small"
                BorderWidth="2px" BorderColor="#999999" DataSourceID="LinqDataSourceTagDocumentos"
                OnSelectedIndexChanged="_gridViewTagsDocumentos_SelectedIndexChanged" OnRowCommand="_gridViewTagsDocumentos_RowCommand">
                <RowStyle BackColor="#EFF3FB" BorderStyle="None" />
                <FooterStyle BackColor="#6699ff" ForeColor="Black" Font-Bold="True" />
                <SelectedRowStyle BackColor="#D1DDF1" Font-Bold="True" ForeColor="Black" />
                <Columns>
                    <asp:CommandField ShowSelectButton="True" />
                    <asp:BoundField DataField="Nombre" HeaderText="Nombre" SortExpression="Nombre" />
                    <asp:TemplateField>
                        <EditItemTemplate>
                            <asp:LinkButton ID="_linkButtonAgregarTagEstructuraEdit" Enabled="false" runat="server" Text="agregar..."></asp:LinkButton>
                        </EditItemTemplate>
                        <ItemTemplate>
                            <asp:LinkButton CommandName="agregarTagEstructura" CommandArgument="<%# Container.DataItemIndex %>"
                                ID="_linkButtonAgregarTagEstructura" runat="server" Text="agregar..."></asp:LinkButton>
                                <cc1:HoverMenuExtender ID="_linkButtonAgregarTagEstructura_HoverMenuExtender"
                                runat="server" DynamicServicePath="" Enabled="True" TargetControlID="_linkButtonAgregarTagEstructura"
                                PopupControlID="PanelWarningAgregar" PopupPosition="Bottom">
                            </cc1:HoverMenuExtender>
                            <asp:Panel ID="PanelWarningAgregar" runat="server" CssClass="popupMenu" Font-Names="Verdana"
                                Font-Size="X-Small" BorderWidth="2px" BorderColor="#999999">
                                <table>
                                    <tr>
                                        <td>
                                            <asp:Image ID="ImageWarning" runat="server" ImageUrl="~/Images/Warning.png" Width="50px" />
                                        </td>
                                        <td>
                                            <asp:Label ID="LabelWarningAgregar" runat="server" Text="Al agregar un documento se agrega este documento a todos los canidatos, esto puede demorar un tiempo."></asp:Label>
                                        </td>
                                    </tr>
                                </table>
                            </asp:Panel>
                        </ItemTemplate>
                    </asp:TemplateField>
                </Columns>
                <PagerStyle BackColor="#6699FF" ForeColor="White" HorizontalAlign="Center" />
                <HeaderStyle BackColor="#6699ff" ForeColor="Black" Font-Bold="True" />
                <EditRowStyle HorizontalAlign="Center" VerticalAlign="Middle" Wrap="True" BackColor="Silver" />
                <AlternatingRowStyle BackColor="White" />
            </asp:GridView>
            <asp:DetailsView ID="_detailsViewDocumentoTag" runat="server" AutoGenerateRows="False"
                CellPadding="4" DataKeyNames="id" DataSourceID="LinqDataSourceDetallesTags" ForeColor="#333333"
                GridLines="Horizontal" EnableTheming="True" Font-Names="Verdana" Font-Size="X-Small"
                BorderWidth="2px" BorderColor="#999999" OnItemDeleted="_detailsViewDocumentoTag_ItemDeleted"
                OnItemInserted="_detailsViewDocumentoTag_ItemInserted" OnItemUpdated="_detailsViewDocumentoTag_ItemUpdated">
                <HeaderStyle BackColor="#6699ff" ForeColor="Black" Font-Bold="True" />
                <InsertRowStyle HorizontalAlign="Left" VerticalAlign="Middle" Wrap="True" BackColor="Silver"
                    Font-Size="X-Small" />
                <EditRowStyle HorizontalAlign="Left" VerticalAlign="Middle" Wrap="True" BackColor="Silver"
                    Font-Size="X-Small" />
                <AlternatingRowStyle BackColor="White" />
                <CommandRowStyle BackColor="#6699ff" ForeColor="Black" Font-Bold="True" />
                <RowStyle BackColor="White" />
                <FieldHeaderStyle BackColor="#D1DDF1" Font-Bold="True" ForeColor="Black" Width="80px" />
                <FooterStyle BackColor="#6699ff" ForeColor="Black" Font-Bold="True" />
                <PagerStyle BackColor="#6699FF" ForeColor="White" HorizontalAlign="Center" />
                <EmptyDataRowStyle BackColor="#6699ff" ForeColor="Black" Font-Bold="True" />
                <HeaderTemplate>
                    <asp:Label ID="LabelDocumentoTag" runat="server" Text="Tipo de documento"></asp:Label>
                </HeaderTemplate>
                <EmptyDataTemplate>
                    <asp:LinkButton ID="LinkButton1" runat="server" CausesValidation="False" CommandName="New"
                        Text="Nuevo"></asp:LinkButton>
                </EmptyDataTemplate>
                <Fields>
                    <asp:BoundField DataField="Nombre" HeaderText="Nombre" SortExpression="Nombre" />
                    <asp:BoundField DataField="Costo" HeaderText="Costo" SortExpression="Costo" />
                    <asp:CommandField ShowEditButton="True" ShowInsertButton="True" />
                </Fields>
            </asp:DetailsView>
            <asp:LinqDataSource ID="LinqDataSourceDetallesTags" runat="server" ContextTypeName="WebArchivosTelefonica.Jerarquias.DataClassesArbolDataContext"
                EnableDelete="True" EnableInsert="True" EnableUpdate="True" TableName="DocumentoTags"
                Where="id == Convert.ToInt32(@idSeleccionado)">
                <WhereParameters>
                    <asp:ControlParameter ControlID="_gridViewTagsDocumentos" Name="idSeleccionado" PropertyName="SelectedValue"
                        Type="Int32" />
                </WhereParameters>
            </asp:LinqDataSource>
            <asp:LinqDataSource ID="LinqDataSourceTagDocumentos" runat="server" ContextTypeName="WebArchivosTelefonica.Jerarquias.DataClassesArbolDataContext"
                TableName="DocumentoTags" OrderBy="Nombre">
            </asp:LinqDataSource>
        </td>
    </tr>
</table>
<asp:HiddenField ID="HiddenFieldIdProyecto" runat="server" Value="00000000-0000-0000-0000-000000000000" />
<uc1:ControlEstadosDocumento ID="ControlEstadosDocumento1" runat="server" />
